package com.kgis.fm.flex.model.metadata
{
	import com.kgis.fm.flex.model.LifecycleModel;
	/**
	 * KGM_OWNERSHIP
	 * 
	 * @author zhxiaomiao
	 * @version 1.0
	 */
	[Bindable]
	[RemoteClass(alias="com.kgis.fm.platform.model.metadata.Ownership")]
	public class Ownership extends LifecycleModel {
		public function Ownership()
		{
		}
		private var _id:int;
		private var _sourceFno:int;
		private var _ownerFno:int;
		private var _sourceCno:int;
		private var _ownerCno:int;
		private var _enforcement:Boolean;
		private var _deleteActivity:int;
		private var _breakLine:Boolean;
		private var _maxoffset:Number;
		
		public function get id():int
		{
			return _id;
		}
		
		public function set id(value:int):void
		{
			_id = value;
		}
		
		/**
		 * 源设备类型号
		 */
		public function get sourceFno():int
		{
			return _sourceFno;
		}
		
		/**
		 * @private
		 */
		public function set sourceFno(value:int):void
		{
			_sourceFno = value;
		}
		
		/**
		 * 父设备的FNO
		 */
		public function get ownerFno():int
		{
			return _ownerFno;
		}
		
		/**
		 * @private
		 */
		public function set ownerFno(value:int):void
		{
			_ownerFno = value;
		}
		
		/**
		 * 源设备触发CNO
		 */
		public function get sourceCno():int
		{
			return _sourceCno;
		}
		
		/**
		 * @private
		 */
		public function set sourceCno(value:int):void
		{
			_sourceCno = value;
		}
		
		/**
		 * 要连接设备触发CNO
		 */
		public function get ownerCno():int
		{
			return _ownerCno;
		}
		
		/**
		 * @private
		 */
		public function set ownerCno(value:int):void
		{
			_ownerCno = value;
		}
		
		/**
		 * 是否必需 0-可选 1-必需
		 */
		public function get enforcement():Boolean
		{
			return _enforcement;
		}
		
		/**
		 * @private
		 */
		public function set enforcement(value:Boolean):void
		{
			_enforcement = value;
		}
		
		/**
		 * 1-删除父设备的时候也删除子设备 2- 删除父设备的时候重新给子设备指定父亲 3- 孤儿 4- 如果有子设备，不准删除父设备
		 */
		public function get deleteActivity():int
		{
			return _deleteActivity;
		}
		
		/**
		 * @private
		 */
		public function set deleteActivity(value:int):void
		{
			_deleteActivity = value;
		}
		
		/**
		 * 是否打断线 0-不打断 1-不打断
		 */
		public function get breakLine():Boolean
		{
			return _breakLine;
		}
		
		/**
		 * @private
		 */
		public function set breakLine(value:Boolean):void
		{
			_breakLine = value;
		}
		
		/**
		 * 最大偏移距离,-1-校验时不考虑距离
		 */
		public function get maxoffset():Number
		{
			return _maxoffset;
		}
		
		/**
		 * @private
		 */
		public function set maxoffset(value:Number):void
		{
			_maxoffset = value;
		}
	}
}
